cotainer creation error handling