How to pivot your career when the unexpected happens