Only write to port_file if it is not NULL.
Remove quiet option which apparently never existed?