Preserve exit value when leaving cleanup trap

If we entered the cleanup trap due to exit with an error code we should
exit dib with an error code.

Change-Id: Iee1a05668b3239113fb91a2da0d9a66d7de4db6b
Merge "Preserve exit value when leaving cleanup trap"