Minor bugfixes
Bugfixes:
- Updated references captured by closures
- In 'transmitterClosed' the interface is immediately nilled to prevent SSL errors on closing
- Added closing of the socket on 'transmitterClosed'
Added functionality:
- Sorting of connections in the connection pool
API changes:
- Renamed 'abortConnection' to 'connectionWasClosed'