Listen for spawn error events and log them