Painter/KeyReceiver cleanup.