add clean function due to jvm bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038