re-added reconnection on close. thanks Andrea