125 reattach stopped container stdin fix

Solves #108, #125 and #228