Fixed issue where scheduler was preventing web server from shutting
down.