Add support for request shutdown function