Valencia head coach Nuno Espirito Santo has brought his career at the Mestalla to a close, resigning with the club sitting ninth in La Liga.