# Functions
AfterFuncWrapperFunc returns a time.AfterFunc wrapper function that handles panics.
Exit prints the given reason to log and initiates a clean shutdown.
GoroutineWrapperFunc returns a goroutine wrapper function that handles panics and writes them to the log.
HandlePanic recovers panics and then initiates a clean shutdown.