handle exceptions in s3mkbucket