clear the console after we're done
explicitly drop lock
remove unused import