add resolve and reject object in promise returned by connection#open