shutdown USB pipe gracefully. fixes #28.