dock:: fix not return on failed

Change-Id: I16c30d3c2a44c1e09fd18c997dea0975b58d2950