add error handler for ftp requests to avoid crash of server