Fixed returning error code 1 from sofin wrapper. (thx teamon for report)

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>