Add some error catching code.
Travis file