Handle 'error' event for connection

Bug: 57593
Change-Id: I1b8b49c2092a9ebc43d282be9f7d2f6c4ce887a9