Fixing how we call srem when a task is complete or failed
Sleeping between checking on threads, to give other people a chance to use the CPU