Quick edit to fix 2 small neatness problems.

Removed unused import and closed userScan when it was no longer needed.