Allow SessionFactory.createSession to throw an IOException.