Optionally write a pidfile if specified by -pidfile flag