6.5, error handling and logging