add timeout exit to be backward compatible with pm2 update