base.install: Free /dev & /proc if bootstrap fails

When bootstrap fails, it does not free /dev & /proc. Let's protect it by
enabling trap.