execute a hook when a download finished