Improve error handling in status.go