Some weird android devices just throw AssertionError on timeout. Explicitly catch them.