Fix small warnings (mostly due to unclosed Scanners)