Bugfixing invalid worker shutdown method