Added basic error handling for EC2 backend