Expand try block to ensure clipboard reset