Made RunningProcess implement AutoCloseable