changed runLocalWrapper to wrap user exception to cloudexceptions