(!) Fix: Crashes when closing the injected