Release call mutex on script time out
Fix bug if error occurred during script replication