Refactor mailonly plugin: handle multiple concurrent list commands
Destroy connection on error; add TODO