How to lead when people are leaving