added exited listener