Clearing of stacks on exception, and increase of main stack size.