@Override
    public void destroy() {
        watchableScript.close();
    }
This is {@link GroovySurrogateAuthenticationService}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-surrogate-core/src/main/java/org/apereo/cas/authentication/surrogate/GroovySurrogateAuthenticationService.java