[Error Handling] Add logs
Refactor code: When an error occurs log with error level and meaningful context, ie what object caused the error. Stop execution of message (Either return or throw new error, careful not to re-throw several times)
Edited by Carina Antunes