Adding error checking to sound loading.