Release ownership of the underlying native handle.
This function causes all outstanding asynchronous operations to finish
immediately, and the handlers for cancelled operations will be passed
asio::error::operation_aborted error. Ownership
of the native handle is then transferred to the caller.
Thrown on failure.
This function is unsupported on Windows versions prior to Windows 8.1,
and will fail with
on these platforms.