Fix timeout exception handling
Add requirements.txt file