Trap Unloaded lib

Show error if shared library was not loaded.
Merge pull request #23 from x2nie/master

Trap Unloaded lib