Screen Sharing with Mac - Shared machine's keyboard unresponsive

When I close my laptop, the clipboard deletes recent clips.

It would be useful if there was a setting to KEEP recent clips but delete them on logging out or powering down.

Have you already tried the BetterTouchTool Clipboard Manager? You can set how long you want to keep the clips in there.