Allow closeHandle(null) to close current active handle.