Boundary Behavior and Confinement of Screw Dislocations