This function registers a callback function to be invoked
if establishing a KVM session fails before handing over control to the RFB
protocol. The calling application should implement the following prototype
function: