Iterate over all open windows+tabs to find "our" tab to close

Also, add some tests that check that we actually close the windows.
Be more defensive during cleanup
Update Changes
Bump version
Firefox 3.0.9 does not close thw window, so we adapt the test to check that we closed the right tab.