Added connector locking interface. Added 'log' param to listen method.