Add method to close whole application (all windows and session) in clean way