Remove usage of unneeded initErrorEvents method.