Ukraine should send messages to the customers (likely in the Middle East and Africa) that would have consumed that grain and let them know that Russia destroyed it instead of letting it being eaten.
Imagine trying to send stuff through a port when you are blockaded. They played themselves by thinking they could do simple things at time of war. They need to trade via land