add a timeout and bail on wp_error