Add safe knex closing when architect will close