**Branch/Environment/Version** - Branch/Version: Master (and earlier) - Environment: Presumably any tyk-gateway, but definitely on-prem **Describe the bug** The recover loop takes a parameter that can later cause a nil pointer exception **Reproduction steps** Steps to reproduce the behavior: https://github.com/TykTechnologies/tyk/blob/f69e5ac1b49a6aab070e500d2b14e353e8f96e46/storage/connection_handler.go#L150 pass through onConnect https://github.com/TykTechnologies/tyk/blob/f69e5ac1b49a6aab070e500d2b14e353e8f96e46/storage/connection_handler.go#L122 **Proposed Solution** Default to a no-op function instead of trying to invoke a function that is nil