Snape didn't kill himself after Lily's death only because of the promise that he made to Dumbledore about protecting Harry and the cause Lily had died for. Just before Snape's death in the seventh book Snape asks Harry to do a last thing for him, he asked Harry to take his tears and put them in the Pensieve to discover Snape’s real story.