beforeCreate and afterCreate can fail the message creation