modified return value and Erlang Thrift Lib for more friendly exit