Control return value on writing rules to system, error message boxes
Message boxes improvements