Cleanup connector code.