Turn Off Lights that were Turned on by Door Sensor But not closed

Well I gave this a try and it worked. However, the power allowance turns the light off after two minutes and this seems to work for all triggers , if they are manual or from another trigger. Is it possible to only have the light switch use the power allowance for the closet only and if so how?