Server audit, fixed several potential bugs related to error logging. Code was exporting  variable to HTTP stream in several places which would cause client side crash during server logging.