Properly restart sd prints

Fixes #258