provide a total hack for closing scripts