Let the app work with pm2

This is required to ensure the app can work with pm2 for clustering...