there should also be an option to close the client (by xlogging) with scriptsystem.