Fix manager.id vs managerServer.id typo that broke security tests.

Intercept IOException that's now thrown when a sending connection is closed
while there are unacknowledged messages.
Error ACKs should trigger IOExceptions, so catch only those exceptions in the test.