Event thread cleanup