Clean up some stuff in clipboard plugin