Implement error event emitter
Remove unnecessary semicolon