Updated PhysicaloidLibrary

Now check if connection is open before trying to close it
All log are now disabled in PhysicaloidLibrary when doing a release