misc: Changed calls to exit() to abort()

This will allow an easier tracking of the errors in gdb.

Signed-off-by: Celelibi <celelibi@gmail.com>