Make sure to set error reguardless of attach or stdin

Fixes #3364
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Merge pull request #4927 from crosbymichael/start-hang

Make sure to set error reguardless of attach or stdin