catch assertion errors so travis doesn't get stuck