To replace the elbow with Tail End, select main Duct and the branch duct.
To Close the open end of a duct Select the duct and instead of selecting the branch duct press space bar.