Add built-in extractor for dumping Session on request failure, close #1023