Applied singleton pattern to UserInterface. Edited CloseCommand