Optional script to be executed on the Master node before the actual connection method is invoked for connecting to the slave.