Fix random reboots/freezes due to pm2.c