Fix handling of yaralib return values
Propose the user to continue editing the broken rule file. Also others error handling fixes