Remove all error listeners.

To prevent max listeners warning when running in test environment.

Note that this can be improved to prevent other (user) listeners being
removed.
0.5.14