Added a global error processor that fires event when errors occur. Made a specific error type for eventLoops and updated the tests to test them.