To protect against the ups and downs of student life, focus on the things you can control and set clear goals.