Don't try to close a handle already closed