fixed errors on close. added callback & validation
Merge pull request #39 from neuromusic/fix-audio

fixed errors on close. added callback & validation