Removed finish() from MainActivity.onClose()