Stop planning right after some error occurred

something new every day, thanks