exception when android back button is pressed during scan

couldn't fix the actual crash so surrounded code in shutdowncamera with try/catch