Updated error handling for sounds.