Code:
on ^*:ERROR:*.*:{ if (closing link isin $1-) { echo -s closing link to server fool | halt }  


Could do it like that, it does work.