PLAIN: Implement ERROR handling in client