[backend] Fix ports to close.