Add gracefully quit methods to Random Number Generator.