Fix maintenance controller error handling.