I'm not sure simply panic at this level is the proper behavior here. Should check what kind of error it is and perhaps give an informative message if we end up panicking.  Usually I'd set the decision to panic higher the call chain, and return an informative error with `fmt.Errorf("coudln't create PID file, %v", err)`.