#44: close sockets on exception.