Cleaning the javaAgent