Make sure all exceptions are logged during unit tests
Make sure all exceptions are logged during unit tests

Fixes #1168

evdevgit/jsdom,Zirro/jsdom,aduyng/jsdom,kesla/jsdom,cpojer/jsdom,fiftin/jsdom,danieljoppi/jsdom,vestineo/jsdom,Sebmaster/jsdom,nicolashenry/jsdom,beni55/jsdom,lcstore/jsdom,darobin/jsdom,vestineo/jsdom,tmpvar/jsdom,beni55/jsdom,mbostock/jsdom,selam/jsdom,Ye-Yong-Chi/jsdom,nicolashenry/jsdom,kevinold/jsdom,Joris-van-der-Wel/jsdom,sirbrillig/jsdom,mbostock/jsdom,aduyng/jsdom,janusnic/jsdom,evanlucas/jsdom,evdevgit/jsdom,AshCoolman/jsdom,tmpvar/jsdom,jeffcarp/jsdom,selam/jsdom,Ye-Yong-Chi/jsdom,snuggs/jsdom,fiftin/jsdom,AshCoolman/jsdom,evdevgit/jsdom,robertknight/jsdom,zaucy/jsdom,darobin/jsdom,snuggs/jsdom,jeffcarp/jsdom,cpojer/jsdom,zaucy/jsdom,evanlucas/jsdom,aduyng/jsdom,susaing/jsdom,Ye-Yong-Chi/jsdom,evanlucas/jsdom,susaing/jsdom,mzgol/jsdom,janusnic/jsdom,fiftin/jsdom,nicolashenry/jsdom,robertknight/jsdom,Joris-van-der-Wel/jsdom,mzgol/jsdom,kevinold/jsdom,zaucy/jsdom,Sebmaster/jsdom,sirbrillig/jsdom,Joris-van-der-Wel/jsdom,janusnic/jsdom,AshCoolman/jsdom,Zirro/jsdom,Sebmaster/jsdom,danieljoppi/jsdom,robertknight/jsdom,szarouski/jsdom,szarouski/jsdom,mbostock/jsdom,lcstore/jsdom,danieljoppi/jsdom,darobin/jsdom,beni55/jsdom,mzgol/jsdom,lcstore/jsdom,sirbrillig/jsdom,kevinold/jsdom,jeffcarp/jsdom,kesla/jsdom,vestineo/jsdom,szarouski/jsdom,selam/jsdom,susaing/jsdom,kesla/jsdom,cpojer/jsdom