Added handler for runtime session error.