catching socket error on getFile