I tried to place a redstone block next to a door, then remove the redstone block, all using commands. I expected this to work several times, that the door would open and close as supposed to. The problem is, the door remains in the powered state (reading off the F3 screen) and will remain so until I place and remove a redstone block there manually, without commands.
To replicate:
1. Place a door.
2. Use the /setblock command to place a redstone block next to it.
3. Use the /setblock command to remove said redstone block.
4. Read off the right side of the F3 info screen, on the very bottom-most line.
setblock isn't guaranteed to update blocks.