wrapper: fix the bug that grnline doesn't exit when groonga is shutdowned
wrapper: remove unused variable