Unload scripts when they error