moved ctxcloser to own pkg