Merge pull request #1 from gotimer/master

Close resources before return
ResultSequence is cached by default. So there is no need to hold on to
the session till result processing is over.
Moved the code that initializates and creates the corb Manager instance
into a function that can be be invoked from outside. This is useful, if
corb needs to be wrapped/extended.