Return -1 on unknown message and catch all errors