Added exit and error message for when nameserver's port is occupied.