Fix load_scripts / close #45