[1131] Core/Shell: fixing restart for non-debug

Signed-off-by: Chiruclan <development@chiruclan.de>