[musicdb] fix the curlfile crash on exit properly this time