exception handling in sockets and PnP SUBSCRIBE example