Caps escape contest with Lightning with an important W