implement try catch gaurd graceful shutdown
comply with jshint
moved errors into errors file
implemented domain error state machine
gaurd against insanely bad edge cases