rectoring and breakup into multiple components
setting exit code to 1 on termination
enabling session support in lua socket