In Act V, scene ii of Romeo and Juliet, what role does Friar John play in the catastrophe?

He creates a quarantine, which impacts Romeo.

He secretly performs Romeo and Juliet's wedding.

He mistakenly tells Balthasar that Juliet is dead.

He fails to deliver an important letter to Romeo.