Handle error and mounted case separately. Signed-off-by: Anusha Ragunathan <anusha@docker.com> Upstream-commit: 57ca2a210108d31f8cbe9660bcd6cd469a937ff7 Component: engine