Library to reduce the code necessary to start and make a controlled shutdown of standalone applications