Added log call for listenandserver to catch errors