contextify: throw timeout error properly

fix #7509