fixed issue where if server isnt running, prog crashes....