pm2 reset metadata method - code hardening