Update error_handler to ignore thrown exceptions with no error_level. Add test loop to the socket listener