Free memory blocks when catching an exception
test/grid: Use specific shader, generic ones seem broken