When the Server in the net Library tries to write to a client a NullPointerException message is unnecessarily generated because the Server already knows the client has disconnected. This can be fixed by moving the write call inside of the check for the client being active.