Close ws connection on exit
Redirect to the created thread.
Update response handler