Add try-s to ensure 'after' and 'after suite' get called if test fails.

@kpiwko @smiklosovic could you review it?