feat: add close connection to db before close the app

Resolve merge

Merge request reports

Loading