close ws connection on unregister from server notifications