Exception Fixes

Wrap callbacks in a block to rescue exceptions, close the cursor, then reissue the exception.