Added completion blocks to open/close operations