Revert "JERSEY-2176: "Problems with calling close() and flush() methods on underlying output stream." Groovy/Spock unit tests."

This reverts commit 21da4e39a1131c8e0a726cebcad89591b0d1d7b7