First of all you should put these lines

[log]
level = * trace

in your cfg file so you can see a bit better when the CTD problem is encountered in the log.