Propagate error back to caller.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
Merge pull request #134 from rjnagal/master

Propagate error back to caller.