interface AsyncClosingAction<R>
Action that performs clean
abstract fun onClose(env: R): R
abstract fun onError(env: R, t: Throwable): R