clean client opening (call to standard functions)