Database check was throwing RuntimeEOFException instead of RuntimeException