Emit 'err' instead of 'error' in logger to avoid throwing on unhandled error event