* Put service and client into a ConnectionEnvironment object for an easier usage
* Adjust time of client registering, otherwise it crashes if the state is going to be connected but the client object has not been created