Log error when spawning process