I would like to share something that I've learned the hard way, developing google-drive-ocamlfuse. When mixing monadic programming and exception  handling, you have to be extra careful. In fact, when you deal with a lot of partially applied functions, there is the risk that your try/with block does not wrap a fully applied function, and the exceptions that may be thrown can slip outside the exception handler. I've prepared a gist, where I show the problem and how to resolve it (obviously the solution requires one more level of indirection. :-) Hope this is useful.
Shared publiclyView activity