Fix the servlet test so it cleans up temp dirs.

Embedded Tomcat creates a temp folder when the test runs, something like `tomcat.10000`. If left untreated, these temp dirs just take up space and look ugly. This PR removes them when the test completes.