See http://dev.bukkit.org/server-mods/cleanup/