Added WaitForSigint which will wait until it receives a sigint or sigterm signal.