Implement timeout for document conversion process

This prevents the ability for a hanging conversion to bring down the
entire service.