I'm sorry but your code just makes me wanna hurt somebody.

Might want to delay Bukkit.shutdown by 40 ticks. Hint: BukkitRunnable