419344 - NPNServerConnection does not close the EndPoint if it reads
-1.

Fixed by correctly handling the -1 read, closing the connection.
Also covered additional error cases, making sure the connection is
closed.