[Feature Request] - Add an onclose callback function - Add a reconnect on close
[Feature Request]