Improve error handling
Prepare release 3.1.2
Setting version to 3.1.2
Setting version to 3.2.0-SNAPSHOT