Make sure the session is released when using Linq