Fix for variables being undefined when an exception occurs (no version number received).
Catch all except statements should not be used!