Call close listener from option on agent disconnect