Prevent main goroutine from blocking indefinitely.