Fixed instance stopping on non-interactive mode (docker run command without -i parameter).