fix peer.c pidfile handling on error, plus archipelagos control file changes