Fix error with CustomOreGen, cleanWorlds now works with Bukkit unloading (eg multiverse unload), improve leak detector.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>