Adding missing close of the input stream to the StaticResourceMessageProcessor