Exit nicely if another application is running on the same port as the forwarder

fix #548