Fixed issue where server crashed after third reload... Forgot to close sessionfactory