change task open scheme by event driven => align open flag with open and close events