Support new terminate/3 cowboy handler callback