The elevator door did not close fully due to material build-up in the track; this prevented the door switch to make contact causing the doors to stay closed. The Cal. licensed elevator technician cycled the power allowing the doors to open so that the employee could walk out of the elevator; the technician then cleaned the track and switches. Contacted MSHA and they laughed.