Remove unnecessary task.
Fix shutdown, prevent multiple threads from being created.