Destroys an instance of the class, releasing the resources allocated for the session and unloading the networking library.