Fixes for Central "Handshake" flow
Cleanup

Make sure cursors are closed after use