Handling errors which close connection on or before EHLO

Currently client can't handle errors when servers terminate connection on EHLO. Usually this is done with error 421, which tell us:
Service not available, closing transmission channel

So, if server responds with 421 on EHLO (or before EHLO), to not try HELO, because connection is already terminated, but handle error in right way.