Ensure we completely exit the thread when any stop request is received