Bug fix in beginSequenceRender + fix crash on exit + clear persistent
messages when input is changed in the viewer