[readline/wrapper] clean up