if no fail function rethrow exception