Add no-output mode support for snapshot sessions
Fix clang warnings