Adding observer for custom error handling and reusing sessions.