quit at the right time