Re-setting connection when connection was close.
Re-setting connection when connection was close.