Improve common exception handling
Improve common exception handling

- handle `lief.bad_file` exceptions
- Add debug logging if lief raises common exception
PUNCH-Cyber/stoq-plugins-public,PUNCH-Cyber/stoq-plugins-public