Close cursor
Show errors in log