Fixes restart/quit on windows