Exit signal is now correctly handled and allocated memory is freed, before exiting.
Change-Id: I9e431d56eddfeec21413c290b2fa7ad35b566f6b http://gerrit.minix3.org/#/c/2690/