Added stubs for handling error and close on session.