Commit changes before switching machines