Shut down thread on ESC