Learning to pull out at the last second