Connection

Fixing some issues linked to https://trac.openmicroscopy.org.uk/ome/ticket/10480

No ready for review yet. Required to close tickets.