Added bad_function_call exception handler.