Better restart behaviour for console and sshdoor.