Example method to prevent server crashing from uncaught exceptions, using the cluster module