Fix bugs

- Permissions policiy bug where the callback was missing.
- Consider error while sending message as critical