set ScheduledThreadPoolExecutor daemon=true

In order to allow graceful shutdown