+ added close method to client