Stop planning right after some error occurred

Good point: left-over from different approach