Spawn and error event