adding log and explicit listener stop on error