Github user danielsoro commented on the issue: https://github.com/apache/tomee/pull/176 Well.. it is calling inside a try-statement, I believe which the close will be called in the end of the program or when some exception occur: https://github.com/apache/tomee/pull/176/files#diff-78e3cde3f4b438e49a55568e9cee40d9R162 About java -cp.. I'm going to try provide a test for it.
---