use different exception handler if transaction-type is local [maintenance]

back-port of https://github.com/hazelcast/hazelcast/pull/4164

fixes #4160