Ensuring that the standalone does not shutdown prematurely when running
in the non interactive mode - RA-328(cherry picked from commit 3812c10ebbdd1b209b0fea29139ad9e7d29b614a)