Make at_exit preserve the build status correctly

Change-Id: I9f8c37cd9fea14aca4f73d6fb10bbf3c8024e3ee
Uncommenting test lines

Change-Id: Id48fb2fbbc464dc3e3d7494d76bf65188d0c2b23