private static void tryClose(Closeable closeable) throws Exception
    {
        try
        {
            closeable.close();
        }
        catch (IOException e)
        {
            throw new Exception(e);
        }
    }
From https://groups.google.com/forum/#!topic/protostuff/D7Bb1REf8pQ (Anil Pandge)
protostuff-core/src/test/java/io/protostuff/CodedDataInputTest.java