Error check in check_uptime