The implementation of the close operation, for closing an open handle.
Closes the given handle.
[Validate]