feat(error handling): Added in appropriate logging of errors