Add close commands to offlineimap_helper.