def test():
    c = Capturer()
c.capture('http://www.google.com/google.png', 'google1.png')
c.capture('http://www.google.com/google.png', 'google2.png')
if __name__ == '__main__':
    test()
How do I shut down PyQt's QtApplication correctly?