utility function for creating observables for closeable resources
switch from AutoCloseable to Closeable for java 6.
UnsafeFunc0 now extends Callable.
Merge pull request #1282 from abersnaze/closeable

utility function for creating observables for closeable resources