- Improved stability while closing the activity.
- Output stream changed to use asynchronous transfer.