Fixed quit button functionality

Now it actually quits in online mode.