Add exception handling for Travis