restart crash fixed

fixed crash due to closed cursor on app restart. Added close by pressing
back button.