UI event cleanup.