listen for 'error' on both plain and cleartext sockets