Terminates the vortex library execution on the provided context.
Stops all internal vortex process and all allocated resources assocated to the context. It also close all channels for all connection that where not closed until call this function.
This function is reentrant, allowing several threads to call vortex_exit_ctx function at the same time. Only one thread will actually release resources allocated.
NOTE: Although it isn't explicitly stated, this function shouldn't be called from inside a handler notification: Frame Receive, Channel close, etc. This is because those handlers works indise the context of the vortex library execution. Making a call to this function in the middle of that context, will produce undefined behaviours.
NOTE2: This function isn't designed to dealloc all resources associated to the context and used by the vortex engine function. According to the particular control structure used by your application, you must first terminate using any Vortex API and then call to vortex_exit_ctx.