Changing it to reconnect on error