Here's the Automatic Laser poweroff circuit schematic. This circuit provides a visible power indication. In this case, Ground is waiting on one side of the second switch( top of pic). Then after time period this ground is removed thereby safeing the laser and saveing batteries.