Use DelimitMate instead of AutoClose for YCM.
Control-C is mapping to escape for preventing problems (read the YCM docs).