add options for setting logging
update tests for loader
make the server reconnect and close the socket
allow non-exit catches
reconnect exception
loader does not catch exceptions
main delegates help now