Results 2 issues of Mohamad Gebai

A shared library code shouldn't exit()