manual close db connection after routing/dispatch