Add below code on your url open button and try this
var win = window.open($parameters.RedirectionLink,"_blank");
var timer = setInterval(function(){if(win.closed){
clearInterval(timer);
setTimeout(function CallYourFunction() {
$actions.CloseAndSaveData() // this is the client action
}, 2000);
}},500);