wmix: create the PID file only after successful initialisation