Sorry my mistake, this code should not be here. You are using events to cause side-affects, this is wrong. You should have this code in the `PreviewGalleryController` listening to the `app.on('blur', ...);` event.

**Please follow this spec:** Any photo taking history should be erased from the camera session when the app is minimised in 'secureMode'.