Merge "added validity check for connection handle if connection handle is null, then...