When a dynamic file is called, its an async function call. Give a way to access the promise from inside the dynamic file for deferred cleanup actions.