fix exhausting local ports due to bind usage
improve error reporting