Implemented TTY-resetting after completing binary upload.

This could probably have been implemented using GObject signals, but that's not generally The Way.