close scanner