Added a reconnect option to unhanded close