changed transport.destroy to prevent throwing exceptions if called twice.
It should resove second part of issue #36.