Fix DbSession close issue