Cancel recording on leaving activity