IBM JDK throws an exception when shutdown returns ENOTCONN