I keep a piece ( 12" square ) of old floormat ( raised edges ) on my boat for things like this and worm dirt. It works great to keep things off of your carpet.
Hang it over the side of the boat when done, shake and/or rinse in the water. Put away and you're good to go with no mess.