properly close the output stream or play goes crazy.