Fixed a bug with cron tasks.

Previously, the cron tasks weren't properly being unloaded when the scripts were recompiled. Now all cron tasks are cleared when the engine stops.