Restart listener when close