Cleanup _on_raw_message

* Reduce nested indentation
* Make it obvious how non encrypted messages are handled
* Use a single try statement while decrypting