FIX issue #162: Unnecessary ContextMaskWarnings when assert fails or exception is raised.