added timeout for failsafe plugin