Add error trap to try to diagnose WSOD problem