It seems pretty hit and miss, doesn't it? Sometimes it works, sometimes not. I have had it happen to me just now, bizarrely. In the absence of the other evidence, I'm blaming you ;)
Something you could try:
Enable the debug shell
sudo systemctl enable debug-shell.service
When it gets stuck...