Updated ASM shutdown so it doesn't crash Revit