Method to override to customize PreConnectHandler