Make the extension installation fail when any statement fails

This gives a much better feedback when there is an error in the installation.

Currently, the whole installation steps are run with weird output messages because of missing files and so on, failing the installation only at the end when the extension is not loaded. This is much better now.