Added a try-exception block to the teardown of gaia_test.py