SDK implementation - implemented most of open, check window, and close. including retries.