File to protect/wrap a goroutine