Proposed fix for USB Mass Storage.
unix: Do a proper clean-up on sys.exit/SystemExit.

Addresses issue #859.
Enable device keyword option when running pyboard.py --tests and run-tests --pyboard