Error handling for thread URL input