Setting up a simple Tomcat container using the Maven 2 binding corrupts the output log when stopping the container. If the Maven process finishes without stopping the container explicitly, the log file is fine.
To generate output-before-stop.log, I ran 'mvn clean integration-test'. To generate output-after-stop.log, I ran 'mvn clean verify' (which will run cargo:stop).
See attached logs and sample POM (you'll need to change the deployable to your own webapp).