Changed callback execution and connect emit to open listener.