Stops a MainLoop from running.
Any calls to run for the loop will return.
Note that sources that have already been dispatched when quit is called will still be executed.
a MainLoop