Better Error Handling in the Allocator