Forced a reconnect on server error with a delay between each retry
Added error test for connection