Fixed NPE when generating ResourceBundle from CLI (fixes #25)
More stable cleanup of temp-files in case of errors