omapi_lib_destroy() must be called before isc_taskmgr_destroy() so the latter won't block on the internal omapi task.