Removing reliance on transaction queue for receive and releaase Added unlock call in case write fails