Added PasteboardController to handle pasteboard cleanup on shutdown and timeout