added close method in the connection handler interface