Cleanup g_timeout callback properly