Move uncaughtException handler infront of runTests. getConnection could throw
in a same tick which would result in exception not getting caught.