Add option to set a shutdown timeout in seconds:
It checks the time of last successful get_next and if the time passed is longer than the shutdown_timeout it shuts down. The default value is set to 10 minutes.
It checks the time of last successful get_next and if the time passed is longer than the shutdown_timeout it shuts down. The default value is set to 10 minutes.