Allow the worker thread to quit after 30 seconds of inactivity