Bug Fix: try to reconnect when a connection gets lost.