[TASK] Improve error handling in Flux controllers