Knowing you can leave helps you stay.