'A lesson learned' for Caps