fix: improve signal handling and error reporting

Replace perror() calls with sdapi logging. Tighten up code and fix logic errors.

Edited by Sid Stenersen

Merge request reports

Loading