You want to end the connection to the Loader Server by calling the method release. This method is called implicitly if the Garbage Collector deletes an object in the class Loader.
<object_of_class_Loader>.release ();
session.release ();
See also:
Example for Creating a Table with Java