Fixed critical memory leak (_sessionFactory wasn't disposed).