More logging + close web socket after deactivate