Better error handling for set sysctl