Improved ScheduledExecutor

Added shutdown
Fixed task preempting