Correctly unmount on failure.

Also fixes compiler warning by using `ignore` function to
handle side-effecting code which has a return type.