add requestDidFail:NSError to connection protocol
code cleanup