[Bug 1001] New: - Define macros STATUS_ENDPOINT_CLOSED, STATUS_DISCONNECTED