Catch all exceptions at top level
Change version to 0.5.2