App closes while processing on landscape mode