try to trap the error that's causing the tests to fail