Ionic app closed after capturing image

After capturing image ionic application is restarting automatically.