Corrects a typo

The event we are removing the listener for is "end" not "error"