Add restart logic for Digi apps. Now it is possible to patch it at runtime.