sudo ss -a sport $PORT -K
^^ this command seems to work when you're iterating on a network socket daemon and the port is busy when restarting the daemon.