Fixed some sonar issues. Improved bahavior of BatchProcess on windows.