Better handling of ssh errors

A method is added to class L2HostroutesGatewayMixin to better handle ssh errors

Other minor changes are made to better control test execution

Change-Id: I0d10c3725efacedfd45358a97c998ae218f49997