Catch IOException to avoid annoying messages in the server logs.