fixed errors on close. added callback & validation

- fixed errors when closing streams that don't exist
- added method to validate a wav file (e.g. to ensure 48kHz)
- added simple T/F callback (but might be better to keep this difficult to do?)