Some apps will freeze your device, in those cases, you'll need to reboot your device, either hard or soft reboot. In cases where you can go back to your springboard or interact with your device, double tap the home button for the background apps running and close them.