ALLJOYN-1976: Add a function Close() to Stream class.

Change-Id: I37c1a8dea68587b92bbde8413388857a28132a4a