Fix error handling in psci