readline: cleanup