Vangelis Banos 820c7cd8cc Fix to delete tmpdir on Chrome.stop()
The ``self._home_tmpdir.cleanup()`` cmd is not always executed when
stopping Chrome. As a result, a large number of ``/tmp/tmpXXX`` dirs are
created in production.

The reason is that ``Chrome.stop()`` execution can stop in the ``return``
statement in the following line:
https://github.com/internetarchive/brozzler/blob/master/brozzler/chrome.py#L268
and ``cleanup()`` does not run.

Moving the ``cleanup()`` in the ``finally`` part of the
``try/catch/finally`` block makes it run always in the end of
``Chrome.stop()`` and cleans up the tmp directory in any case.
2018-01-15 13:09:43 +00:00
..
2018-01-09 06:33:03 +00:00
2017-11-20 17:25:32 -08:00
2018-01-04 17:37:02 +00:00
2017-12-21 17:16:41 -08:00
2017-12-15 15:57:36 -08:00
2017-06-07 13:07:42 -07:00