🐛 Set closed state even if not yet open
🐛 Set closed state even if not yet open

And also ensure we only attempt serial auto detect if we are still in
the correct state for it.

Closes #3653

foosel/OctoPrint,foosel/OctoPrint,foosel/OctoPrint,foosel/OctoPrint