Honda CRV does not lock using key remote

Today, I had a problem locking my Honda CRV. When I tried to lock it using key remote, it did not blink side lights indicating it locked. Although locking works fine. All lights remain lit. When I lock it using the locks on windows, it locks but the internal lights remain lit. The solution is so simple.

Make sure all the doors are closed properly. If one of the door is open little bit, car will not lock using key remote.