Fixed Socket closed Exception & build gainst latest Bukkit

Fixed Socket closed Exception & build gainst latest Bukkit