Calling EP_CLIENT on close