reconnects to mochad when connection ends

When connection to mochad server throws an error the driver attempts to
reconnect.