Tasks stop on unmanaged

stop tasks when entities are unmanaged, and better bookkeeping for scheduled tasks.
(also fixes eclipse IDE problems caused by checkstyle.)
you're right, works fine without the extra `gc` calls, have reverted to 1000 and commented out that line w explanation