[fx] listen to port disconnection from background