Added session end method.