display and record clean up with prompt exit