https://bugzilla.redhat.com/show_bug.cgi?id=917045 - fixed exception handling