Use new secure session implementation
Throw exception on invalid session
Redirect stderr to stdout