Register a Closeable resource to this lifecycle.
The bound resource instance.
The resource to register.
Unregister a Closeable resource from this lifecycle.
The resource to unregister.