rollback to JRE 1.6 and fix some strange closes...