allow to free websocket instance memory asynchronously