sdl: Fix termination in -no-shutdown mode