[CXFXJC-8] Fix how the parameters are setup for Windows
Close the classloader if it's a closeable (java7+)