Stop planning right after some error occurred