When to tell your roommate and closest friends you are transferring?

Also, I would add that everyone understood my reasons for leaving because the transfer furthers my career.