Wait for websocket to be closed before stoping the actor (dead letters otherwise)