Closing transaction in server-side cursor examples

Signed-off-by: Zaar Hai <haizaar@haizaar.com>