Bug fix: config without callback function for connection terminated.