My first impression - A and E appear gramatically wrong - "by" is the prep, which should be followed by a noun or the like. Yet "when..." is really not suitable to be after a prep. That's why I mistakenly take C.
But the answer is between A and E, suggesting my initital impression is entirely wrong. I would prefer A as "it" is really vague in E.