Removal of setjmp()/longjmp()

Fixes #22 
The removal is simple. An experiments show that the additional checks do not affect the performance much.