Attempt to reconnect on error.