fixed wrapper.c|h to not brutally exit the program on failure