Exposing close() so you can externally control