clean up
check reporter error in order to restore cursor