Error trapping on setlock new