Changed scheduled worker close method to use shutdownNow()