Sramp 511

https://issues.jboss.org/browse/SRAMP-511
The output stream must be closed in a try:catch:finally block.  Here there is the potential for the stream to not be closed.