We should probably do something better here, maybe emit error events.