Minor change to comm key cleanup function.