Solving class loader close issues in Windows