Handling connection/resolving host errors
Add checking for not allowed file names