Wraps the Scanner in try-with-resources to ensure resource cleanup after reading the config-file from the plugin jar.