handle when solver crashes into a wall