add option to shut down the engine together with the reader app