refacture process filter, skip repeating failed commands
[tomcat] try much harder detecting the version
silence cleanup on exit