GUI Login Now closes in the correct way.