added the possibility to close references
Merge branch 'one-monad' of https://github.com/lazac/references into one-monad