import { AppDependencies } from '../app' ; param dependencies export function destroyCallback ( dependencies ) { return async ( ) => { if ( dependencies . connection ) { await dependencies . connection . close ( ) ; } } ; }