Added sensible back-button behaviour since cast stops if activity is left using back button