Extended support for context timeouts to function calls