Destroying the io_context while there are pending operations is causing issues, and this needs to be addressed. supports #317