Kui kasutaja sulgeb p6hiakent, siis ...

Modify the class ee.ut.math.tvt.salessystem.ui.SalesSystemUI. When user
is closing the main application window, your application should end the
database session before the exit (using
SalesDomainController#endSession)