Handles Goroutine panicking in a centralized manner.