fix error handling on docker
Merge pull request #16 from mistio/docker

fix error handling on docker